#include "Functions.h"

using namespace std;


void MarN(float *marN)
{
	for(int h = 0 ; h < HEIGHT; ++ h)
		for(int w = 0 ; w < WIDTH; ++ w)
		{
			double cosPhi = -1.0 + ( w * 2.0) / WIDTH;
			double cosThD = -1.0 + ( h * 2.0) / HEIGHT;
			double phi = acos(cosPhi);
			double thD = acos(cosThD);

			for(int c = 0; c < 3; c++)
			{
				marN[ (h*HEIGHT + w) * 3 + c] = NP(c, phi, thD);
			}

			//marN(w, h, 0, 2) = NTRT(phi, thD);
		}
}